import Vue from 'vue'
import Router from 'vue-router'

import home from '@/components/home'
import page1 from '@/components/page1'
import page2 from '@/components/page2'
import page1a from '@/components/page1/page1_a'
import page1b from '@/components/page1/page1_b'
//import page1b from '@/comopnents/page1/page1_b'
import end from '@/components/page1/page1_bb/end'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },
    {
      path:'/home',
      name:'home',
      component:home
    },
    {
      path:'/page1',
      name:'page1',
      component: page1,
      children: [
        {
          path:'page1_a',
          name:'page1a',
          component: page1a
        },
        {
        path:'page1_b',
        name:'page1b',
        component: page1b,
        children:[
          {
            path:'end',
            name:'end',
            component: end
          }
        ]
        }
      ]
    },
    {
      path:'/page2',
      name:'page2',
      component: page2
    },
  ]
})
